package org.bigtree.example.constans;

import lombok.RequiredArgsConstructor;
import org.bigtree.example.common.webapi.IResponseCode;

/**
 * @author bigTree
 * @since 2025/4/24
 */
@RequiredArgsConstructor
public enum ResponseCode implements IResponseCode {
    OK("00.000.000", "Ok"),
    FAIL("00.000.001", "Fail"),
    SAVE_FAILED("00.000.002", "Save Failed"),
    UPDATE_FAILED("00.000.003", "Update Failed"),
    REMOVE_FAILED("00.000.004", "Remove Failed"),
    NOT_FOUND("00.000.005", "Not Found"),
    ALREADY_EXIST("00.000.006", "Already Exist"),
    PARAMETER_INVALID("00.000.007", "Parameter Invalid"),
    ENUM_INVALID("00.000.008", "Enum Invalid"),
    UPLOAD_OVERFLOW_THRESHOLD("00.000.009", "Upload Overflow Threshold"),
    UPLOAD_FAILED("00.000.010", "Upload File Failed"),




    ;

    private final String code;
    private final String desc;

    @Override
    public String code() {
        return this.code;
    }

    @Override
    public String desc() {
        return this.desc;
    }
}
